package com.csu.jpetstore_reconfiguration_back.service;

import com.csu.jpetstore_reconfiguration_back.common.CommonResponse;
import com.csu.jpetstore_reconfiguration_back.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csu.jpetstore_reconfiguration_back.vo.OrderVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 朱嘉辉
* @description 针对表【t_order】的数据库操作Service
* @createDate 2024-04-13 20:36:36
*/
public interface OrderService extends IService<Order> {
    CommonResponse<List<OrderVO>> getAllOrders(HttpServletRequest request);
    CommonResponse<OrderVO> getOrder(String id);
    CommonResponse<OrderVO> addOrder(OrderVO orderVo,HttpServletRequest request);
    CommonResponse<OrderVO> updateOrder(String id,OrderVO orderVO);
    CommonResponse<OrderVO> deleteOrder(String id);
}
